import request from "./request.js"

export function addPosting(posting) {
	return request("/posting/addPosting", "POST", posting)
}

export function listPosting(query) {
	return request("/posting/listPosting", "GET", query)
}

export function listHotPosting(query) {
	return request("/posting/listHotPosting", "GET", query)
}

export function getPostingDetail(id) {
	return request('/posting/getPostingDetail/' + id, "GET")
}

export function likePosting(data) {
	return request('/posting/likePosting', "GET", data)
}